.container {
  width: 100%;
  container: cui-button-group / inline-size;
}

.base {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.base .secondary {
  margin-top: var(--cui-spacings-kilo);
}

@container cui-button-group (width > 370px) {
  .base {
    flex-direction: row-reverse;
  }

  .left {
    justify-content: flex-end;
  }

  .center {
    justify-content: center;
  }

  .right {
    justify-content: flex-start;
  }

  .base .secondary {
    margin-top: 0;
    margin-right: var(--cui-spacings-mega);
  }
}
